<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="utf-8">
  

  
  <title>linux 启动流程 | 进击的菜鸟</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="Linux 下的服务service 和 daemon SysV init 脚本  /etc/init.d 目录下shell 脚本常见的缺点就是，慢、可读性不强、太详细又很傲娇 /etc/rc.d/rc.d  ———&amp;gt;  /etc/init.d/rc0-6 7个运行级别 rc.localrcS.d/ who -r  或 runlevel  查看运行级别  Systemd serivice  一">
<meta name="keywords" content="linux">
<meta property="og:type" content="article">
<meta property="og:title" content="linux 启动流程">
<meta property="og:url" content="http://yoursite.com/2019/07/16/linux-启动流程/index.html">
<meta property="og:site_name" content="进击的菜鸟">
<meta property="og:description" content="Linux 下的服务service 和 daemon SysV init 脚本  /etc/init.d 目录下shell 脚本常见的缺点就是，慢、可读性不强、太详细又很傲娇 /etc/rc.d/rc.d  ———&amp;gt;  /etc/init.d/rc0-6 7个运行级别 rc.localrcS.d/ who -r  或 runlevel  查看运行级别  Systemd serivice  一">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2019-07-16T07:07:38.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="linux 启动流程">
<meta name="twitter:description" content="Linux 下的服务service 和 daemon SysV init 脚本  /etc/init.d 目录下shell 脚本常见的缺点就是，慢、可读性不强、太详细又很傲娇 /etc/rc.d/rc.d  ———&amp;gt;  /etc/init.d/rc0-6 7个运行级别 rc.localrcS.d/ who -r  或 runlevel  查看运行级别  Systemd serivice  一">
  
    <link rel="alternate" href="/atom.xml" title="进击的菜鸟" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
</head>
</html>
<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">进击的菜鸟</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-linux-启动流程" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2019/07/16/linux-启动流程/" class="article-date">
  <time datetime="2019-07-16T06:33:44.000Z" itemprop="datePublished">2019-07-16</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/随笔/">随笔</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      linux 启动流程
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="Linux-下的服务"><a href="#Linux-下的服务" class="headerlink" title="Linux 下的服务"></a>Linux 下的服务</h2><h3 id="service-和-daemon"><a href="#service-和-daemon" class="headerlink" title="service 和 daemon"></a>service 和 daemon</h3><ol>
<li>SysV init 脚本</li>
</ol>
<p>/etc/init.d 目录下<br>shell 脚本常见的缺点就是，慢、可读性不强、太详细又很傲娇</p>
<p>/etc/rc.d/rc<em>.d  ———&gt;  /etc/init.d/rc</em><br>0-6 7个运行级别</p>
<p>rc.local<br>rcS.d/</p>
<p>who -r  或 runlevel  查看运行级别</p>
<ol start="2">
<li>Systemd serivice</li>
</ol>
<p>一种以 .service 结尾的单元（unit）配置文件，<br>用于控制由 systemd 控制或监视的进程。<br>简单说，用于后台以守护精灵（daemon）的形式运行程序<br>服务文件放到<br>/etc/systemd/system（供系统管理员和用户使用），<br>/usr/lib/systemd/system（供发行版打包者使用）</p>
<p><a href="https://blog.csdn.net/djskl/article/details/46671453" target="_blank" rel="noopener">文件解释</a></p>
<p>chkconfig ntsysv 管理工具</p>
<p>service –status-all   查看所有服务</p>
<ol start="3">
<li></li>
</ol>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2019/07/16/linux-启动流程/" data-id="ckbn4t15g000at8tqptv9oaag" class="article-share-link">Share</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/linux/">linux</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2019/07/19/设置终端代理/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          设置终端代理
        
      </div>
    </a>
  
  
    <a href="/2019/07/16/linux-编译安装opencv/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">linux 编译安装opencv</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/随笔/">随笔</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/">linux</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/tips/">tips</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/linux/" style="font-size: 20px;">linux</a> <a href="/tags/tips/" style="font-size: 10px;">tips</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/07/">七月 2019</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2019/07/19/设置终端代理/">设置终端代理</a>
          </li>
        
          <li>
            <a href="/2019/07/16/linux-启动流程/">linux 启动流程</a>
          </li>
        
          <li>
            <a href="/2019/07/16/linux-编译安装opencv/">linux 编译安装opencv</a>
          </li>
        
          <li>
            <a href="/2019/07/14/Linux-查看版本/">Linux 查看版本</a>
          </li>
        
          <li>
            <a href="/2019/07/14/Debain版本/">Debain版本</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2020 零度可乐真好喝<br>
      <!-- Powered by <a href="http://hexo.io/" target="_blank">Hexo</a> -->
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>



  </div>
</body>
</html>